Store backtrace/SQL queries of failed syncs in the DB 

[pivotal story](https://www.pivotaltracker.com/n/projects/488191/stories/71632648#)