A rather large refactoring, mostly mechanical, but that prepares for much easier future improvements

- code-coverage increased 
- structs moved to timer_struct/ folder
- improved readability
- split up the sql patches into multiple files 

--> that all leaves the codebase in much better state