Removed access to database connection from command context.