This is modified version of non_jango pg_mon