framework sql fix.