Fix update locations. Fixes #4

Set citydef_uid to 1 if no location found and citydef_uid is NULL and
remove foreign_keys pragma to allow updating citydef_uid.