fixed reference to old check_postgres