[core] Add database sanity check after bundling