introduced config file
reading db from config (so normally no more file chooser)
made config database reader more robust.