Added db.disonnect method, inserted it into most database queries to close the connection when finished with the query.