db_reconnect function

Reconnect an object to a database