Filter model, for easier filtering

* Added option to define user filtere to database model
Locales response compatible with pwf
[fix] Template wrapping