entity rebuild and db export