Dynamic SQL: Applications, Performance, and Security