only run certain postgres tasks when databases is set