Extracted session config to db config
Fixed active menu item
Fixed active menu item
Prevent bad mode on item creation