DatabaseScript: Improved error message