Reset the database lock if pid changed
Merge pull request #220 from EverythingMe/celery

Reconnect to database on every task.