A connection array is now passed explicitly to the admin view, rather than assuming the constants DB_NAME etc.