F/dbparser testing

This branch refactors the dbparser unit test program to make a bit more readable and also contains dbparser
refactors.
It should be non-anonym enum, otherwise I think that  using define would be better