conversion between sql and structs in Go