Fixing db file name parsing