Fixed delete options part to use $wpdb method.

Seems delete_option isn't defined when it runs.