store exception backtrace in database
Merge pull request #192 from bitzesty/store-sync-exceptions

Store backtrace/SQL queries of failed syncs in the DB