TODO: switch bytes to varints
Make a cabal package
Even better Makefile
Move it all to the new location
Precompile all 3 possible queries

Maybe Messages is better name for this?