fixed avatar if no set in user profile
fixed typo in name of db table