move configuration of loglevel and databases to init