fix deprecated's SQL derp