wrote model for simple db, will probably change