Changed format of import file. Added code to put categories and annotations into database.