Added DB configuration and supervisor

There were a couple of hardcoded paths in the templates as well :)