refactored mixins - disambiguated db exceptions
PEP 8 abominations