added sql hooks to uploader