Added new command sm_wml_rebuild to rebuild the database from scratch