fixing annotation query for submit_annotaitons in rake tasks