link up admin/locations and admin/location/location_id/edit pages with database