Changed ForEach() to foreach
Support for sending messages to multiple databases