Singleton scope for database factory and such