Remove redundant commit() database calls