hook up language files and db to template