Fix SQL silliness