attempt to fix segfault due to recursive mysql query