bugfixes in db repository classes: multi-row fetch methods returned incorrect results
bugfixes entities and controller definitions