Make "next" seek to the next message

This implementation isn't super efficient, but I guess it's good
enough for now.  I should really figure out how to do a SQL min()
call, but I don't care enough...