Remove some unnecessary console.log not needed. Order by is now required with HTML attribute. Min Max also works with some default values if nothing is set rather than NULL errors