some updates on the process_db part, actually the new added part is not good at all, so not used actually