An apparatus providing for metal ion/nitrate entrapment comprises a chemically activated, microfiltration, composite polymer and silica-based membrane including a polyamino acid attached thereto through reaction of a terminal amine group of the polyamino acid with the membrane. A method for preparing such a chemically activated or polyamino acid functionalized membrane includes the steps of permeating the silica-based membrane with a solution of silane and a solvent so as to react methoxy groups of the silane with silanol groups of the membrane to incorporate epoxide groups and attaching a polyamino acid to the membrane by reacting a terminal amine group of the polyamino acid with one of the epoxide groups on the membrane