Implemented a db manager singleton