minor changes
Fixed bug in filedatabase when reading the file