[DD-701] deep internal schema (only for bibo document for now) as sql
script