Added function to query most recent stockouts for facility