cleaned up the code a bit and removed commented out portions. Insert is now inserting boolean values into reading data