CouchApp idea implemented using Postgres and OpenResty.