Database default settings and twig extending fixes