Make log file rotating to 1 MB.
Fix bug on database entries edition.