Use wp_insert_post to add new records into the DB instead of $wpdb->insert

This fixes a bug where author, timestamps, and other post info was not
being set.