added one more call to Database::commit()