db: minor bugfix