1. changes to remove warnings
2. changes for DB support in the controller
todo:
much does not work
lot of code breaks
but no compiler errors