made db helperes cleaner
tested and fixed CategoryDB
fixed entries. wrote some tests for it