NOJIRA postgres upsert impl