Fixed a DataFrame id bug and changed the BEGIN TRANSACTION and COMMIT commands to be more inline with the actual inserting (interuptions were causing bugs; fixes issue #2