Updates USERS table and USER_LOG table