How to add topic to into a group's discussion

Hello,

We're tryin to import a forum's data into ELGG's a group's discussion. Is there a function that inserts topic, and comments made to that topic? For example:

add_topic_into_discussion ($topic_subject, $topic_body, $discussion_id, $topic_owner, $date);
add_comment_into_topic ($comment_body, $comment_owner, $date);
add_comment_into_topic ($comment_body, $comment_owner, $date);
...

 

If there is no function, any suggestions about which tables to insert these data?

Taanks a lot