data/data: add db.IsContraintFailure() method, to check for failed constraints on database interactions
api/v0/users: check for unique constraint failure on user creation