Added the first two functions: query and queryOne