Added better command line arg processing to sql_demo.py