fixed ddb query condition
fixed tests
added db based configuration
Updated docs, minor bugfixes