Adds insertion of data into photo table following an upload.