profile layout detail, improved lupe cursor,
moved all logpic db query to one place; added missing allow_user_view tests