PostgreSQL SELECT : "unexpected: Downlink disconnected"

For example, I have a few scoring fields that I want to apply different weighting to to reorder my table of assets. So I need to multiply an entire column of scores by a user-defined number between 1 and 10. According to @daviesian I can do this operation directly in the sql database within my cur.execute function? That would be awesome. What I found online said to get the data into a Numpy array. Any resources or tips on how to do math inside a Postgres DB? Thanks so much!