Postgresql Assign Query Result To Variable Resistor Circuit