bug fixes for sql db
Merge branch 'develop' of github.com:dreamfactorysoftware/lib-php-common-platform into develop