Removed sql queries in AdminComponent