moved __enter__ and __exit__ methods
removed generic update_record method