Rename lx_templates table to lxc_templates for compatibility with sqlite. Maybe was an error lx_templates instead lxc_templates.