#533 - Changing db.insert() to db.replace() to support initial save and re-save after view / scale / zoom changes