Change to use int64 database ids
Go vet fixes