Changed commuincation with DB
