add: write to error log on PDO exceptions
Merge pull request #42 from Jureth/error_log

add: write to error log on PDO exceptions