switched from flat file to mysql data storage