add setting to set default expire date
add additional rows to the select statement, 'stime' is needed for the expire check