database schema
fixed syntax error in db repository
reworked database access repositories