Throw Exception::DB::DuplicateEntry while editing.
Merge pull request #1 from wtertius/throw_duplicate_key_exception_in_editing

Throw Exception::DB::DuplicateEntry while editing.