sql: added constraints for 'ipackage_content' table
624_package_content: trim '\n' from logged strings