commit the db is not defined