Updated the layout of SQL commands to run