Move database init out of routes for easier mocking and write basic tests
Move back to Makefile for happiness and rainbows