add dispose method to cleanup open db connections