Fixed security issue. Refactored DBInsert->DBQuery. Streamlined DBQuery
code. Pushed some documentation on queries.