Added TYPE field - DIRECTORY or FILE to DB