Added Singleton CDatabase class