Fixed some CLI issues, Adding a new CLI commande to extract RAW SQL to execute.