Fixed SQL for Commands