Fixes #29, checks user sanitation on queries.