Various changes

Modified MongoDB and MSSQL models
Fixed functionality