Handle command line arguments, MySQL connection