How to get DTable column names?

I think figured it out. The code can be improved though

import Base.names
function names(df::JuliaDB.DTable)
    tmpdf = JuliaDB.take_n(df,1)
    keys(tmpdf.data[1])
end