refactor test sql to dao package