Fixed errors in DBI logic and added feature for aggressive writebacks