#1261: Assign db query result to a variable.