conversion between sql and structs in go