Query by PRIMARY KEY

Locations are now added to the SQLite database by the PRIMARY KEY (row
id).  The row id is manually managed and no longer autoincremented,
unless row id value is null