finish model class;continue to write DB class