Singleton database manager