making sure the database is created