Added scoped session, deleted connect function from model