For every *30 seconds* the record is store in to the *SQLite DB*.

I want to execute a thread within *30 seconds* to post the number of records in to our server. 

If the thread exceed *30 seconds* then kill the thread by itself.