preventing the duplicate wp_insert_post

if no match found for tablerecid insert the post, else add post meta

if (!preg_match('/tablerecid/', $data[ 'post_content' ])){
wp_insert_post
} else {
add_post_meta
}