minRange and maxRange use int over uint
gofmt src/api/api.go
Load units from database instead of hard from code