! used the passed member id in the the query and update member data

Signed-off-by: Spuds <spuds@spudsdesign.com>
! The avatar and attachment checks were not returning the same items this
resulted in the mime type header not being properly set and nosniff header to
fail in some instances

Signed-off-by: Spuds <spuds@spudsdesign.com>