s.php: Create compound MySQL query string

Issue #146.
query.php: Return sanitised properties

Issue #146.
s.php: Implement excluded keywords

Issue #146.