Singleton database handler