Save attachment content type in db.