b2bdd12 Completely revamp database layer and test cases as DoctrineORMServiceProvider.