Use argparse to parse arguments.

 * Support both json/sqlite3 now, use -t to specify.