initial building of schema for mongo