fix use case where there's no db