Bug fixes to adding variance to DB and updating of refine plots.