Updated database and adjusted admin function