Fix SQL injection. Fix windows issues.