Admin access database: selection(fix dead loop)