Fix multiple codestyle issues. Implement saving of example files contents into database