reconnect to database after 4 hours