removed the connect method (just call getDb) and added close