Tries longer times to connect to database