Remove trailing ?>, FileSource save plugin code without it
Add more debug info about query