database is not initialized during import anymore

This will simplify import code a lot.
Also fixed debug setting default value, which ignored config file.
add project config unit test, mock library as requirement