complete rework. now just supports Cassandra and Couchbase.