@Override
	public void updateItem(MyUser user) {
		String name = user.getUserName();
		String pass = user.getPassWord();
		long cnt = user.getTotalVotes();
		String role = "ROLE_USER";
		
		String sql1 = "UPDATE users SET password=?, votes=? where username=?";
		String sql2 = "UPDATE user_roles SET role=? where username=?";
		Connection conn = null;
		try {
			conn = dataSource.getConnection();
			PreparedStatement ps = conn.prepareStatement(sql1);
			ps.setString(1, pass);
			ps.setLong(2, cnt);
			ps.setString(3, name);
			ps.executeUpdate();
			ps.close();
			
			ps = conn.prepareStatement(sql2);
			ps.setString(1,  role);
			ps.setString(2, name);
			ps.executeUpdate();
			ps.close();
		} catch (SQLException e) {
			throw new RuntimeException(e);
		} finally {
			if (conn != null) {
				try {
				conn.close();
				} catch (SQLException e) {}
			}
		}
		
	}