Modify Class DB to Singleton