db sorted and build with clean