test1 start

Tried to rewrite DB managing, ran into strange bugs so this go into
another branch.
new db code seems OK
Collection recording implemented. Seems fine...

new features
- collection recording

todo
- check code for stupidity as it was written in hurry.