How to rebuild the SQL database schema while perserving existing data