Reconnect to search backend DB when it disconnected
Merge pull request #779 from hex108/fix-issue-778

Fix issue 778:  OperationalError: (OperationalError) server closed the connection unexpectedly