updating how the database is rebuilt