Database loading keeps datafile and inner data consistent