Fixing small bug when transitioning straight from flat-file to new DB