Fixes #26 : Key now works round-trip to the database, with caveat noted in issue.
Added change lost in previous commit.