What if it's not made in Flash / AIR but some other technology?
You're assuming too much there... The only DB Air can natively access is SQLite.
Everything else is ideally handled by services ( server-side code ).