sqlite3: process args using getopt, extract sql connection part