Controllercode

Add som basic functionality for controllers.
Needs some reworking as I don't know how to work with inserting stuff into the db