did some SQL, lovely!