First draft of database classes
Fixed database connection
Initial data is loaded in the DB when not present