Attr model

* Drop unused code
Database model

* Drop unused code
Locales