create the database instead of closing it