Clumsy abstraction of the storage system

TODO:
1. Prepare abstractions for HangFire.Web assembly (by using queries).
2. Ensure abstractions are ready for MS SQL Server