Improvements to db handling.
Shrink window if input is hidden.
Exclusions.