Convert database service into a module-singleton