fixes #7 show error when running query

Signed-off-by: jmlucjav <jmlucjav@gmail.com>