Most of the code seems to rely on MSSQL instead of relying on database objects, this makes it difficult to switch to MariaDB or PostgreSQL. This should be be refactored to make it possible to do so. From glancing at the code EntityFramework is already present which makes the job easier