Database connections will be closed before exiting methods.