added support for inverted indexes to SimpleDao