Add __del__, __enter__, and __exit__ methods to dbManager