added doSlash() and safe_query() to SQL queries, added confirmation/error editing