STABLE VERSION AGAIN. WORKS WITH VALGRIND. NEED TO INSERT, MODIFY, AND REMOVE ROWS