Updated method squery() to select()