Added queries to extract_tar_member for database implementation