Added checks for existing entries, overwrites them with new information.
Fixed SQL query to accurately return multiple homeloc records, if present.
Initial steps towards properly handeling multiple homeloc records for a given time period.