Resource temporarily unavailable SQL: Connect to database