improve /profile by using local database