add constraints validation
add enforce constraints validation flag
change raised error type
remove fetchall and write some tests
Merge pull request #6 from bourivouh/master

Enforce constraint validation