mysql -u crey -pRey-1176 estadopi -e "delete from estado where fecha < NOW() - INTERVAL 1 WEEK;"
mysql -u crey -pRey-1176 estadopi -e "delete from memoria where fecha < NOW() - INTERVAL 1 WEEK;"