adds custom form structure and db relations