Used a Session to Store Data

I assigned the connection variable to a Session variable called Connection. I then made an if statement  that checks if the session variable has not been set, if not, then it will create the database object and sets it to my session variable.