open existing db bugfix