Remove extra database commit statements