Imported res2sqlite.py script from previous work
Ported res2sqlite.py to Python 3 and changed argument parsing to use argparse