MvcDatabase fixing for the encrypted queries