more parmdb bug fixes