Replaces some hardwired variables with user-defined constants.

populate.sql will be updated usually via work done at https://github.com/fspc/ybdb