Updated database model and added to docs