changed single quotes to double quotes in sql statements