Removed unnecessary code and fixed connection strings