Improve comments; make the database flush interval a CONSTANT.

Change-Id: I2178f6264161df4d2b1cfe43a85afa0c24562734