Date problems and auto commit solved