DBI updated code