Returned the db vars to the correct state.