still working on the SQL.