postgresql plugin: Use the DB query module.