commit() for each db query