Update SQLSelection.java

Add safety if MySQL connection fails.