Change STATUS_UPDATE_CONFLICT to STATUS_ALREADY_EXISTS
Print stack trace on database error.
*id_exist routines return the object.

Correct check for empty list.
Correct formatting to PEP.

Fix validation, and on create if object exists just return that object.
Validation fixes. If datadir exists on create then just return that datadir.
Better validation. Fix formatting to PEP