New stored procedure insert_and_get_node()