General selections from database done.

GUI displays selections. Refactoring still highly needed.