find row to insert into, instead of overwriting first x rows. still very slow.
Only get row by searching for the first row, after that assume right order of incoming json. Much faster now.
Remove test function
In-code comments for better understanding