add more boiler plate code

...aka infrastructure...
+ output formats yaml, database (+ database config)
+ signal handler
+ different actions (check, analyse, analyse live)