Split the integration script into one db part and one non-db part.