[nim, jmdb] Added functionality to set up data for categorical polls