Dynamically changing pet selector lists. Cleaning up some DB closings