Incomplete revamp of replace custom dadatabase layer as DoctrineORMServiceProvider.