out of memory when thumbs creates bug is fixed

also adding userId to Friends and UserProperties tables