fixed sql queries: deleted excess quotes