separated files for db entities
added dict transformation method for each entity
added better error handling