DBServer: Reorganize TestDatabaseServer to be subclassable for multiple database backends