Integrated database as a replacement for flat file storage