created db flatfiles and file controllers