Updated to include Sean code on sql