Put all the messages in the postgres