added method for PQuery
added method for Register