added sql for test