fixed id_compare logic
Changed the driver function to test if insert is working correctly