fix #50 : delete model with keyPath specified

See #50 

If a model has a keyPath specified in indexedDB, delete had no effect. It is fixed now.