print basic status logs with id
use pg8000 module when psycopg2 is not available (e.g. for pypy/pypy3)