attempt to fix segfault due to recursive mysql query
remove debian/ symlink and move pkg/... dir into place