Change DB access logic