Ill figure sql out eventually

delete try number 2