Changed database controller

Need to use scope.user before first and just update Authentication.user
if update is successful