Messages, Application writing to DB