Pātuhitia tēnei: An Adaptive Mechanism to Protect Databases against SQL Injection