committing to db