Add loc_name to location. Remove mydb refs.