This post runs through why you should consider using SQL in your workflows, and then describes how you can easily undertake common GIS tasks with SQL.
Sql
- This article teaches you how to return full GeoJSON FeatureCollection and Feature objects from PostgreSQL/PostGIS queries.