MySQL commit working