Modified Layout, added code for File Saving and helper classes for db