select message by timestamp