Added database fetching on authcontroller