new and more reliable controller notation
move db connection where it should be
update tests from tuto, nothing tests DB yet