Edit insert method

Now work with pass table_name and data array. This is more pretty