implemented unit tests for db models
corrected instructions which were out-of-data