Made the go-linter happy by changing most of the variables and added comments. Added an extra layer of shit around the db for giggles.