typo in code caused crash on second query after server boot -- fixed