>  Ruby and postgresql seem like a good fit.

+1 !!

Tom