got rid of external .sql file, some updates to command line usage