changed query to select_row for move files