Fix incidentally escaped docstring
Add minimal examples to docstrings
Use IntegrityError instead of SyntaxError