Fix database schema mismatches and improve authentication flow
Stabilize chat and payment features and optimize database performance