moved resources DB to flat file format