added SQL to update avatar