Postgresql Row To Array Python Methods Vs Functions In Python