afsql: some fixup

Signed-off-by: Laszlo Budai <stentor.bgyk@gmail.com>