Commit with database