Scripts/Commands: Fix query and added the saving to DB to mute