Today i’ve read at Planet Postgres a post about an interesting tool which is meant to use Http as way of comunication to a postgresql database and json as return datatype, its name is pg_httpd.
Have a look at the comments, they’re very interesting, and the project looks very helpful.
This also made me remember of another tool, HTSQL, this is basicly the same, just a little more robust and written in Python. I’ts aim is basicly the same, just provide a simple way to access data stored in postgresql (Although HTSQL supports as many databases as your python’s database drivers installed). the great thing is that it even comes with fancy stuff to even create graphics.
HTSQL supports graphics, different output types and so on (You can take a look at their extensive tutorial here.
Again, both projects are extremely useful, just depending on what you need, you’d use one or the other (Or none).