make db access in seperate process; use multiprocessing when haven't rq