Using serializable transaction in write transaction