setup database from entities
removed unused code and entities
mapped some resources on service_manager and solved user issues due to main group has been moved to the respective table from the user entity