Adding dependency on postgres driver `pq`
Swapping out DB backend & refactoring relevant code into a central place.
removing dependency on mysql driver

It didn't have a LICENSE (my PR wasn't merged) and mysql's space on
disk makes me sad.
Refactoring of rendering stuff into its own file.