Fix :q to quit.
Added doctest for _parse_dsn.