Move contents of config/Makefile into Makefile
Fixes to get example_site to build
Check that the site to build has defined a DB before trying some operations