DB api unit tests and revisions