RAZ-549: As a user I want to share a file URL with an expiration date
- Fixed queries for MS SQL