creating the database on startup