Small bugfixes, added version number to DB config.