actually remove open_db() function
have an abort method
mwparser --> mwp
refactor pid&qid handling to make it scalable