URL arg handling and db searching for messages.