db changed to Singleton