Automatically add missing field types to database and refactor. Use deferreds in database code to reduce indentation.
Automatically add missing field types to database and refactor.
Use deferreds in database code to reduce indentation.

elf-oskari/NOSE,elf-oskari/NOSE