Conversion to PostgreSQL, assets fixes.