Reimplement addLocation() with query() then insert().