Revise query method, changed to void method so that information passing is left to the beans