You could write a wrapper function. For example, if you've been using dbGetQuery() from the DBI package:
dbGetQueryDT <- function(conn, statement, ...) {
res <- DBI::dbGetQuery(conn, statement, ...)
setDT(res)
res
}
Then just find/replace all instances of dbGetQuery with dbGetQueryDT.