Updated database interface to allow validators before persisting.