JSON API in PostgreSQL, Ruby, and Sinatra. Requires peeps gem.