Fixed SQL connection error