set timeout for database reconnect to avoid lengthy hang