Fix fefault scope to generate correct sql when using database prefix.
Merge pull request #93 from IgorDobryn/master

Fix fefault scope to generate correct sql when using database prefix.