Database - flush automatically