Installing drivers for the A6100+

I have just installed manjaro on my system (dual boot with windows incase that’s important) and I am attempting to get my usb adapter working. I’ve been trying to follow this

  1. uname -r
  2. Pacman -S linux-headers (choose the one that matches output from first command)
  3. Pacman -S dkms bc yaourt
  4. yaourt rtl8812au (choose latest dkms version of rtl8812au) DONT RUN WITH SUDO
  5. restart and pray

and upon the headers command I get this error
warning: database file for ‘core’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘extra’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘community’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘multilib’ does not exist (use ‘-Sy’ to download)
error: target not found: linux51-headers

and in the original thread that I found this they were helping them install it and did not get the same error as me so I skipped to the aur packages and upon trying to install them I got these errors
“failed to prepare transaction” and “could not find database”

and these were the drivers I tried to install
rtl8821au-dkms-git.
rtl88xxau-aircrack-dkms-git

I am new to linux and confused on what to do next or if there is a better way to install the drivers for this card although it’s probably me just being dumb about all of this