Finished implementation of sync to include UPDATE
Action queue added
Fixed incorrectly named _dbPrimaryKey