sql for docs and ef changes according

also blanks for credit product and credit contract have been added