store and fetch messages from inbox