Updated templates

  * removed extra blank lines in LaTeX templates;
  * polytech/db.tmpl: use substitution instead variable reference.

Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>