Refactored code. DB receives pid per user request to FCGI. NOT DONE: Way of reading multipe pipes on DB side