Support for auto-save in MySQL persistence layer