make database handler a singleton