Changed DB models a bit & lots of fixes.

- Refactor code
- Logging fixed on backend and frontend!
- Dashboard changed a bit
- Disabled to show progress on dashboard for now. It was buggy.