bugfix regarding db