Fix database commit not applied.