Bring sanity and fix SQL injection exploit.