Use objectStore's keyPath instead of "id"

Addresses the FIXME in Database#add and #put.