Added try/catch block around PDO query executions to catch database connection timeout and retry the query a configurable number of times (default of 3).
Merge pull request #25 from MonkDev/db-timeout-retry

Catch database connection timeout and retry query