Added ability to pull availability information from database