You can maintain your code/function in custom app and call custom function using custom script or hook.
for populating data in child table:
reference I
reference II
You can maintain your code/function in custom app and call custom function using custom script or hook.
for populating data in child table:
reference I
reference II