Move the sql stuff to a .go file so it can be used in tests.
Add tests for products.go. Wheeeeeeee.
Some refactorising that came out of writing tests.