changes in the Database constructor and rebuild createTable method