Hospitals sort creates preferences

No need of preferences controller/views.
Adds doc/erd diagram.
Little fixes