Working on codecs and FileType
Continued work on codec implementation.

* Using __en/decode__ instead of en/decoder methods.
* FileTypes use injected db.query wrapper method