black template
forcing close db connection to avoid pool errors