When the property is taken under a search warrant, it shall be delivered to the court issuing the warrant. If the property was stolen or embezzled, the court shall cause it to be delivered to the owner, on satisfactory proof of his title and the payment by him of all fees. If the warrant was issued on the grounds specified in subdivisions (2) and (3) of Section 15-5-2, the officer effecting the warrant must retain the property in his possession, subject to the order of the court to which he is required to return the proceedings or of the court in which the offense is triable in respect to which the property was taken.
Ala. Code § 15-5-14 (1975)