INSERT INTO TABLE1 (a,time) VALUES ('tomas', UNIX_TIMESTAMP());
DELETE FROM TABLE1 WHERE time<=(UNIX_TIMESTAMP()-3600*1));