design db models for bigcoor