reddit 39: SQL

Major SQL overhaul to safeguard against injections