Adding table and columns to the query constructor.

Signed-off-by: Nigel <Nigel@192.168.1.103>