Postgres Db Size Queryselector In Json Format