Added sql changes and changed the sql conn