Database conf & templating