reconnect to database on connection failure/error