added some validations to pulsedb