Metaprogramming to select database fields
Event log
Refactor severity handling
Nice error messages
Read database fields with introspection
Cleanups