UI for adding planned commands and bugfixes

- Made the CheckDB more object oriented
- Added UI for planend commands
- Fixed a bug where acommand would be executed over and over again each
time the DB checked