Fix for minor error in Role Thread check
Removed unnecessary database erasing functions from LDAP