Added connection to DB and send message