Tidying and adding the ability to read a connection string from config file.