You can use this sql command:

Code: 
alter table user add column first_time_msg_read int (1) DEFAULT '0' NULL;
Always backup any table you are about to alter first.

AS far as the button goes you can use :

OnClick="setTimeout('document.forms[\'FormName\'].submit();',30000) "

javascript to make it submit form after 30 seconds.