fix db file name computation