BibAudit: Refactor

* DBApi inside a class

* Non-DBApi functions moved to utils

* Regression test file created