In order to get library and project files, replace the PDMLINKPRODUCT with WTLIBRARY and PROJECT2 tables.
Can you share your SQL where you see the .ol files? FYI...You can switch to Advanced Editor when you're replying, and then highlight the SQL code that you paste in the reply window, and then format it as code using the >> Syntax Highlighting > SQL option on the toolbar.