Fixed database tables
added tables to database