Preparing for 1.1.3

Updated sql queries with $wpdb->prepare( to prevent any attempted sql attacks.