* fix(eventstore): differentiate unique constraint error format * docs: add comment to eventstore vars * fix(eventstore): return correct error type if unique constraint already exists