Structs & functions to satisfy sql/driver.