added message if query has no parameters, instead of showing empty table