Store messages in DB