Exponential cost traps in database architectures: how SurrealDB breaks the cycle