Working app

A lot is working now. The database needs optimalisation and the ui needs
to be in 3 activities instead of fragments.