set up rest of db template call

Signed-off-by: Marc Neubauer <marc.neubauer@gmail.com>