update plugin to calcX with the db generate script