Python Numpy Aggregate Functions Postgresql Create Role If Not Exists