Moved SQL connection string to appSettings section, modified code to adhere