Added query results as object options.  Simpler data sanitization (escape).  Added function affected to get num affected rows for a query.