Added check for db init to user.go