Change the index action to be database-backed