Updated insert statement after added ldap support