defined craw ouchdb schema, need to be optimized