Fixed database file linking