Fixed LDAP error for new users, added DateTime support to db insert/update methods