Added required methods in BaseDatabaseWrapper.

I should have included this in 29628e0b6e5b1c6324e0c06cc56a49a5aa0747e0.