making model file match db