1. A method for enabling privileges comprising: establishing a session on behalf of a user; receiving a request to enable database privileges for the user; upon receipt of the request to enable database privileges, verifying trusted security logic has previously been executed, wherein the act of verifying the trusted security logic comprises verifying a proxy user and checking a call stack; and enabling database privileges for the user if the trusted security logic has previously been executed and is contained in one or more frames of the call stack.