I got bored, sorry! (fix most of #2)

PDO-ify most everything