Reconnect to DB if connection closed

Fixes issue https://github.com/dmclain/scrapy-heroku/issues/2

When the pg connection is closed and a `psycopg2.InterfaceError` is raised, it will now create a new connection and execute the query.