Reverted some changes, changed sql