Create a backup of your of your personal data like sms, contacts etc before you flash or update your device.
Flash/unbrick or upgrade Sony Xperia devices with these ROMs using flashtool
Learn how to use flashtool from here
Get Sony PC companion from here
Learn how to unlock or relock Sony Xperia bootloader from here