adds doctor and ui, uses database