Func for getting categories previews
Tested by testing module
refs #542
Previews as dictionary
Updated db manager
refs #542