renamed references of JRequest::getCmd

this as it is deprecated
renamed db->query to db->execute