populate database from text file