db fix for location selection