Automatic find or create sql file directory
Remove hardlink to sql file
Add test link to magical