Changed type for locationIDs and facilityID from int to long.