added the method getArrayCopy() for user entity
logged in user fix
users table fix
dialogs module refactoring