db_disconnect function

Disconnect an object from a database