Update dbf.cpp

add template so that it compiles on RHEL 6