General database use for passing in and exiting