improved logs site and background work
implemented database stuff for categories