Replacing MySqlDb with pymysql and using argparse for parsing CLI arguments