remove the collection and db methods in model