Changed From MongoDb To SQL