added sql for demo