Parts and Kits API: Fix editing parts.

Add the objects to the db in order to edit an
already existing object.