Query method added to mysql database class.

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