try to reconnect when database goes fishing

this will even allow you to start dbmail services before the database
backend
EXPORT: fix deadlock
Revert "fix deprecation warnings"

This reverts commit 122cd3db2f6fca11b1dc1ba90542614ccec13daa.
IMAP: add experimental support for owner ACL