added update method for connecting to sql and updating an employee.