Bug fix on file2db