Fixes #1358: Added SqlDataProvider.
doc fix.
proper check of "db" property of ActiveDataProvider.