changed places_id and places_ref to charfield