update spelling mistake

fixing minor bugs on sql queries