changing filter templates to have separate model/db table