add port option and fix DSN format