reconnect to database after 30 minutes