move heavy db lifting into child process