added execute method which is basically query