add bdb indexing and remove use of db_file
add bdb dep and remove db_file