amend example with additional query + kore_pgsql_logerror()