GP, template, and DB setup