Added pg monitor and its jcom_db_mutex function