api: bugfix for databases with no observations