Updated database flush timing for add function in controllers to return
ID after add
Updated user management functionality