move translation db to static
add template_replace_tags to simplify modifying of template objects