Moved global context to database (name) level