add gitignore for swp and pyc
fix single query execution from command line