added sql statements