Improved protection against SQL Injection. Fixed select on windows.