fix item home location SQL