Changed queries to use bindings for sanitation.