Fixes Database API change.