try using nnodes=1 for db insertion to not waste a node