Not sure i understood what the problem is correctly but if you deleted the database I guess you'll have to do start from scratch.
If not, in preferences you can point to where the database is and then look for the missing tracks and relocate them if needed.