Fixed errors in DBPopulator and TextReadIn