create and/or open the database