gradually adding support for Index entry lists
added support for sqlite and flags usage in command line