This just uses dump1090-mutability to do the dirty lifting (also makes a nice webpage if you're interested in that) and parses the JSON files in /var/run/dump1090-mutability and inserts to a database.
Tested on an rpi4 with Debian 10 using an RTL-SDR dongle
Use prereqs.sh to install required prereqs.