After years of building on Firebase, we switched to PostgreSQL. Here's why typed schemas, static analysis, and real relational data won — and why we're never looking back.