Bug 1101492 - Improve ActionLogDB

The TODO comment is in database_helper.js