fix cleardb for PG