added SQL connection