handle postgresql transaction errors
Merge pull request #48 from lociii/sql-exception

handle postgresql transaction errors