The magistrate must annex together the depositions, the search warrant and return, and the inventory, and return them to the next term of the court having power to inquire into the offenses in respect to which the search warrant was issued, at or before its opening on the first day.