Adding sql for cleaning database