Ruby program with postgres/sql, organizes expenses with categories