delete alert and make fetch from PostgeSQL