helper.sql (see last commit for description)