Postgresql Create Function Return Json Flask Sqlalchemy Echo