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

Could not write any specs which demonstrate this issue as it uses sqlite. 
Issue description is https://github.com/ErwinM/acts_as_tenant/issues/92