Added a base class for all FMDatabase errors. Fixed error domain for SQL validation function
Merge branch 'ErrorClass' into IndexHotFix