Pull weeds
{
   "_id": "_design/prod",
   "_rev": "9-99350c3ea3b8a093d9ee01a4a42567ff",
   "language": "javascript",
    "views": {
        "list": {
            "map": "function(doc) {
                if (doc.type == \"prod\") {
                    function dateArrayToDate (dateArray) {
                        return new Date(
                            dateArray[0],
                            dateArray[1],
                            dateArray[2],
                            dateArray[3],
                            dateArray[4],
                            dateArray[5]
                        );
                    }
                    emit(doc._id,{
                        _id: doc._id,
                        _rev: doc._rev,
                        created: dateArrayToDate(doc.created),
                        name: doc.name,
                        price: doc.price
                    });
                }
            }"
        },
        "options": {
            "map": "function(doc) {
                if (doc.type == \"prod\") {
                    emit(doc._id,{
                        name: doc.name,
                        price: doc.price
                    });
                }
            }"
        }
    }
}