Adding sql type providers and other small changes