changing how the database it rebuild