add queryone and queryall